package com.ourteam.workspace.domain;
/**
 * Template Name : DTO数据对象
 * Template Version : 1
 * Template Last Modfiy Date : Fri Nov 30 16:49:33 CST 2018
 * Auto Generate Date : 2018-11-30 16:50:05
  * Warning ! This file will be overwrite when regenerate !
  * 
 */

import java.util.Map;
import java.util.HashMap;
import org.apache.commons.lang.ArrayUtils;
import org.apache.commons.beanutils.BeanMap;
import net.dao.IDataPopulateCallback;


public class WorkspaceBuildConfigBean implements java.io.Serializable {

        
	private static Map<String,String> mappedDaoFields = new HashMap<String,String>();
    
	private com.ourteam.workspace.dao.WorkspaceBuildConfig workspaceBuildConfig;

	protected BeanMap getBeanMap(){
	
		return new BeanMap(workspaceBuildConfig);
	}
	
	static{
				
												
		mappedDaoFields.put("id",com.ourteam.workspace.dao.IWorkspaceBuildConfigDAO.Id);
		
																																																																																		
				
																
		mappedDaoFields.put("workspaceId",com.ourteam.workspace.dao.IWorkspaceBuildConfigDAO.WorkspaceId);
		
																																																																														
				
																				
		mappedDaoFields.put("buildConfigName",com.ourteam.workspace.dao.IWorkspaceBuildConfigDAO.BuildConfigName);
		
																																																																										
				
																								
		mappedDaoFields.put("buildPath",com.ourteam.workspace.dao.IWorkspaceBuildConfigDAO.BuildPath);
		
																																																																						
				
																												
		mappedDaoFields.put("sourceCompiler",com.ourteam.workspace.dao.IWorkspaceBuildConfigDAO.SourceCompiler);
		
																																																																		
				
																																
		mappedDaoFields.put("autoBuildCorn",com.ourteam.workspace.dao.IWorkspaceBuildConfigDAO.AutoBuildCorn);
		
																																																														
				
																																				
		mappedDaoFields.put("sourceCodePaths",com.ourteam.workspace.dao.IWorkspaceBuildConfigDAO.SourceCodePaths);
		
																																																										
				
																																								
		mappedDaoFields.put("dependLibary",com.ourteam.workspace.dao.IWorkspaceBuildConfigDAO.DependLibary);
		
																																																						
				
																																												
		mappedDaoFields.put("targetRuntimeEnv",com.ourteam.workspace.dao.IWorkspaceBuildConfigDAO.TargetRuntimeEnv);
		
																																																		
				
																																																
		mappedDaoFields.put("autoDeploy",com.ourteam.workspace.dao.IWorkspaceBuildConfigDAO.AutoDeploy);
		
																																														
				
																																																				
		mappedDaoFields.put("status",com.ourteam.workspace.dao.IWorkspaceBuildConfigDAO.Status);
		
																																										
				
																																																								
		mappedDaoFields.put("remarks",com.ourteam.workspace.dao.IWorkspaceBuildConfigDAO.Remarks);
		
																																						
				
																																																												
		mappedDaoFields.put("lastBuilTime",com.ourteam.workspace.dao.IWorkspaceBuildConfigDAO.LastBuildTime);
		
																																		
				
																																																																								
		mappedDaoFields.put("deployType",com.ourteam.workspace.dao.IWorkspaceBuildConfigDAO.DeployType);
		
																						
				
																																																																												
		mappedDaoFields.put("deployPath",com.ourteam.workspace.dao.IWorkspaceBuildConfigDAO.DeployPath);
		
																		
				
																																																																																
		mappedDaoFields.put("deployUser",com.ourteam.workspace.dao.IWorkspaceBuildConfigDAO.DeployUser);
		
														
				
																																																																																				
		mappedDaoFields.put("deployPassword",com.ourteam.workspace.dao.IWorkspaceBuildConfigDAO.DeployPassword);
		
										
				
																																																																
		mappedDaoFields.put("productionType",com.ourteam.workspace.dao.IWorkspaceBuildConfigDAO.ProductionType);
		
																														
				
																																																																				
		mappedDaoFields.put("productionName",com.ourteam.workspace.dao.IWorkspaceBuildConfigDAO.ProductionName);
		
																										
				
																																																																																								
		mappedDaoFields.put("sourceEncode",com.ourteam.workspace.dao.IWorkspaceBuildConfigDAO.SourceEncode);
		
						
				
				
	}
	
	public static String getMappedDAOField(String aAttrName){
		return mappedDaoFields.get(aAttrName);
	}
	
	
	public WorkspaceBuildConfigBean() {
		super();
	    		
		this.workspaceBuildConfig = new com.ourteam.workspace.dao.WorkspaceBuildConfig();
                
	}
	
		
	public WorkspaceBuildConfigBean(com.ourteam.workspace.dao.WorkspaceBuildConfig workspaceBuildConfig) {
		super();
	
		this.workspaceBuildConfig = workspaceBuildConfig;
		
	}
		
		
		
    	
	public com.ourteam.workspace.dao.WorkspaceBuildConfig convertToWorkspaceBuildConfig(){
		return this.workspaceBuildConfig;
	}
	
	public com.ourteam.workspace.dao.WorkspaceBuildConfig convertTo(){
		return this.workspaceBuildConfig;
	}
	
			
		
			
			
		
	/**
	 * Get id
	 * 
	 * @return long
	 */
	public long getId(){
		return (long) this.workspaceBuildConfig.getId();
	}
	
	/**
	 * Set id
	 * 
	 * @parameter long
	 */
	public void setId(long id){
		
		this.workspaceBuildConfig.setId(id);
	}
		
																																									
		
		
					
			
		
	/**
	 * Get workspaceId
	 * 
	 * @return long
	 */
	public long getWorkspaceId(){
		return (long) this.workspaceBuildConfig.getWorkspaceId();
	}
	
	/**
	 * Set workspaceId
	 * 
	 * @parameter long
	 */
	public void setWorkspaceId(long workspaceId){
		
		this.workspaceBuildConfig.setWorkspaceId(workspaceId);
	}
		
																																							
		
		
							
			
		
	/**
	 * Get buildConfigName
	 * 
	 * @return String
	 */
	public String getBuildConfigName(){
		return (String) this.workspaceBuildConfig.getBuildConfigName();
	}
	
	/**
	 * Set buildConfigName
	 * 
	 * @parameter String
	 */
	public void setBuildConfigName(String buildConfigName){
		
		this.workspaceBuildConfig.setBuildConfigName(buildConfigName);
	}
		
																																					
		
		
									
			
		
	/**
	 * Get buildPath
	 * 
	 * @return String
	 */
	public String getBuildPath(){
		return (String) this.workspaceBuildConfig.getBuildPath();
	}
	
	/**
	 * Set buildPath
	 * 
	 * @parameter String
	 */
	public void setBuildPath(String buildPath){
		
		this.workspaceBuildConfig.setBuildPath(buildPath);
	}
		
																																			
		
		
											
			
		
	/**
	 * Get sourceCompiler
	 * 
	 * @return String
	 */
	public String getSourceCompiler(){
		return (String) this.workspaceBuildConfig.getSourceCompiler();
	}
	
	/**
	 * Set sourceCompiler
	 * 
	 * @parameter String
	 */
	public void setSourceCompiler(String sourceCompiler){
		
		this.workspaceBuildConfig.setSourceCompiler(sourceCompiler);
	}
		
																																	
		
		
													
			
		
	/**
	 * Get autoBuildCorn
	 * 
	 * @return String
	 */
	public String getAutoBuildCorn(){
		return (String) this.workspaceBuildConfig.getAutoBuildCorn();
	}
	
	/**
	 * Set autoBuildCorn
	 * 
	 * @parameter String
	 */
	public void setAutoBuildCorn(String autoBuildCorn){
		
		this.workspaceBuildConfig.setAutoBuildCorn(autoBuildCorn);
	}
		
																															
		
		
															
			
		
	/**
	 * Get sourceCodePaths
	 * 
	 * @return String
	 */
	public String getSourceCodePaths(){
		return (String) this.workspaceBuildConfig.getSourceCodePaths();
	}
	
	/**
	 * Set sourceCodePaths
	 * 
	 * @parameter String
	 */
	public void setSourceCodePaths(String sourceCodePaths){
		
		this.workspaceBuildConfig.setSourceCodePaths(sourceCodePaths);
	}
		
																													
		
		
																	
			
		
	/**
	 * Get dependLibary
	 * 
	 * @return String
	 */
	public String getDependLibary(){
		return (String) this.workspaceBuildConfig.getDependLibary();
	}
	
	/**
	 * Set dependLibary
	 * 
	 * @parameter String
	 */
	public void setDependLibary(String dependLibary){
		
		this.workspaceBuildConfig.setDependLibary(dependLibary);
	}
		
																											
		
		
																			
			
		
	/**
	 * Get targetRuntimeEnv
	 * 
	 * @return String
	 */
	public String getTargetRuntimeEnv(){
		return (String) this.workspaceBuildConfig.getTargetRuntimeEnv();
	}
	
	/**
	 * Set targetRuntimeEnv
	 * 
	 * @parameter String
	 */
	public void setTargetRuntimeEnv(String targetRuntimeEnv){
		
		this.workspaceBuildConfig.setTargetRuntimeEnv(targetRuntimeEnv);
	}
		
																									
		
		
																					
			
		
	/**
	 * Get autoDeploy
	 * 
	 * @return String
	 */
	public String getAutoDeploy(){
		return (String) this.workspaceBuildConfig.getAutoDeploy();
	}
	
	/**
	 * Set autoDeploy
	 * 
	 * @parameter String
	 */
	public void setAutoDeploy(String autoDeploy){
		
		this.workspaceBuildConfig.setAutoDeploy(autoDeploy);
	}
		
																							
		
		
																							
			
		
	/**
	 * Get status
	 * 
	 * @return String
	 */
	public String getStatus(){
		return (String) this.workspaceBuildConfig.getStatus();
	}
	
	/**
	 * Set status
	 * 
	 * @parameter String
	 */
	public void setStatus(String status){
		
		this.workspaceBuildConfig.setStatus(status);
	}
		
																					
		
		
																									
			
		
	/**
	 * Get remarks
	 * 
	 * @return String
	 */
	public String getRemarks(){
		return (String) this.workspaceBuildConfig.getRemarks();
	}
	
	/**
	 * Set remarks
	 * 
	 * @parameter String
	 */
	public void setRemarks(String remarks){
		
		this.workspaceBuildConfig.setRemarks(remarks);
	}
		
																			
		
		
																											
			
		
	/**
	 * Get lastBuilTime
	 * 
	 * @return java.util.Date
	 */
	public java.util.Date getLastBuilTime(){
		return (java.util.Date) this.workspaceBuildConfig.getLastBuildTime();
	}
	
	/**
	 * Set lastBuilTime
	 * 
	 * @parameter java.util.Date
	 */
	public void setLastBuilTime(java.util.Date lastBuilTime){
		
		this.workspaceBuildConfig.setLastBuildTime(lastBuilTime);
	}
		
																	
		
		
																																	
			
		
	/**
	 * Get deployType
	 * 
	 * @return String
	 */
	public String getDeployType(){
		return (String) this.workspaceBuildConfig.getDeployType();
	}
	
	/**
	 * Set deployType
	 * 
	 * @parameter String
	 */
	public void setDeployType(String deployType){
		
		this.workspaceBuildConfig.setDeployType(deployType);
	}
		
											
		
		
																																			
			
		
	/**
	 * Get deployPath
	 * 
	 * @return String
	 */
	public String getDeployPath(){
		return (String) this.workspaceBuildConfig.getDeployPath();
	}
	
	/**
	 * Set deployPath
	 * 
	 * @parameter String
	 */
	public void setDeployPath(String deployPath){
		
		this.workspaceBuildConfig.setDeployPath(deployPath);
	}
		
									
		
		
																																					
			
		
	/**
	 * Get deployUser
	 * 
	 * @return String
	 */
	public String getDeployUser(){
		return (String) this.workspaceBuildConfig.getDeployUser();
	}
	
	/**
	 * Set deployUser
	 * 
	 * @parameter String
	 */
	public void setDeployUser(String deployUser){
		
		this.workspaceBuildConfig.setDeployUser(deployUser);
	}
		
							
		
		
																																							
			
		
	/**
	 * Get deployPassword
	 * 
	 * @return String
	 */
	public String getDeployPassword(){
		return (String) this.workspaceBuildConfig.getDeployPassword();
	}
	
	/**
	 * Set deployPassword
	 * 
	 * @parameter String
	 */
	public void setDeployPassword(String deployPassword){
		
		this.workspaceBuildConfig.setDeployPassword(deployPassword);
	}
		
					
		
		
																													
			
		
	/**
	 * Get productionType
	 * 
	 * @return String
	 */
	public String getProductionType(){
		return (String) this.workspaceBuildConfig.getProductionType();
	}
	
	/**
	 * Set productionType
	 * 
	 * @parameter String
	 */
	public void setProductionType(String productionType){
		
		this.workspaceBuildConfig.setProductionType(productionType);
	}
		
															
		
		
																															
			
		
	/**
	 * Get productionName
	 * 
	 * @return String
	 */
	public String getProductionName(){
		return (String) this.workspaceBuildConfig.getProductionName();
	}
	
	/**
	 * Set productionName
	 * 
	 * @parameter String
	 */
	public void setProductionName(String productionName){
		
		this.workspaceBuildConfig.setProductionName(productionName);
	}
		
													
		
		
																																									
			
		
	/**
	 * Get sourceEncode
	 * 
	 * @return String
	 */
	public String getSourceEncode(){
		return (String) this.workspaceBuildConfig.getSourceEncode();
	}
	
	/**
	 * Set sourceEncode
	 * 
	 * @parameter String
	 */
	public void setSourceEncode(String sourceEncode){
		
		this.workspaceBuildConfig.setSourceEncode(sourceEncode);
	}
		
			
		
			
			
			
			
			
			
			
			
			
			
			
			
			
			
			
			
			
			
			
			
			
			
	
	public int hashCode() {
   		return org.apache.commons.lang.builder.HashCodeBuilder.reflectionHashCode(this);
 	}
	
		
	public boolean equals(Object obj) {
		if (obj == null) {
            return false;
        } // end if

        if ((obj instanceof WorkspaceBuildConfigBean) == false) {
            return false;
        } // end if

        WorkspaceBuildConfigBean other = (WorkspaceBuildConfigBean) obj;
        
        boolean isEqual = false;
        
                
        com.ourteam.workspace.dao.WorkspaceBuildConfig tempWorkspaceBuildConfig = other.convertToWorkspaceBuildConfig();
        
        if(tempWorkspaceBuildConfig == null || this.workspaceBuildConfig == null){
        	isEqual = false;
        }
        else if(tempWorkspaceBuildConfig == this.workspaceBuildConfig || tempWorkspaceBuildConfig.equals(this.workspaceBuildConfig) ){
        	isEqual = true;
        }
        else{
        	isEqual = false;
        }
        
        return isEqual;
	}
	
	
	public static WorkspaceBuildConfigBean[] toArray(com.ourteam.workspace.dao.WorkspaceBuildConfig[] aWorkspaceBuildConfigs){
		
		return toArray(aWorkspaceBuildConfigs,null);
	}
	
	public static WorkspaceBuildConfigBean[] toArray(com.ourteam.workspace.dao.WorkspaceBuildConfig[] aWorkspaceBuildConfigs , IDataPopulateCallback aCallBack){
		 
		 if(ArrayUtils.isEmpty(aWorkspaceBuildConfigs)){
		 	return new WorkspaceBuildConfigBean[0];
		 }
		 
		 int length = aWorkspaceBuildConfigs.length;
		 
		 WorkspaceBuildConfigBean[] beans = new WorkspaceBuildConfigBean[length];
		  
		 for (int i = 0; i < length; i++) {
			beans[i] = new WorkspaceBuildConfigBean(aWorkspaceBuildConfigs[i]);
			if(aCallBack != null){
			    aCallBack.populate(beans[i],new Object[]{aWorkspaceBuildConfigs[i]});
			}
		 }
		 
		 return beans;
	 }
	 
	 	 
}